<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'  %>
<%@page session="false"%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Job Hunter - liste des actions</title>
</head>
<body>


	<div id="breadcrumb">
		<a href="/main" >accueil</a> >
		<a href="/actionsList" >actions</a>
	</div>
	<article class="article12">
<h1>Actions List</h1>
	<a href="addAction"><%@ include file="/img/addB.svg"%></a>
	<table class="dataTable display compact" >
		<thead>
			<tr>
				<th>name</th>
				<th>date de début</th>
				<th>état</th>
				<th>description</th>
				<th>type de communication</th>
				<th>type d'action</th>
				<th>processus</th>
				<th>personne de contact</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${actionsList}" var="action"> 			
				<tr>
					<td>${action.name }</td>
					<td>${action.actionDateString }</td>
					<td>${action.state.description }</td>
					<td>${action.description }</td>
					<td>${action.communicationType.description }</td>
					<td>${action.actionType.description }</td>
					<td>${action.process.name }</td>
					<td>${action.contact.firstName } ${action.contact.lastName }</td>				
					<td>
						<a href="action?id=${action.id }"><%@ include file="/img/seeB.svg"%></a>	
						<a href="updAction?id=${action.id }"><%@ include file="/img/updB.svg"%></a> 
						<a href="delAction?id=${action.id }"><%@ include file="/img/delB.svg"%></a> 
					</td>
				</tr>
			</c:forEach>	
		</tbody>	
	</table>
</article>
</body>
</html>